import java.awt.Component;
import java.awt.ComponentOrientation;
import javax.swing.JOptionPane;

/**
 *
 * @author Educacionit
 */
public class MngrError {

    public JOptionPane getOptionPane (Component parent) {
        JOptionPane             pane = new JOptionPane("Base de datos no disponible", JOptionPane.ERROR_MESSAGE,
                                                       JOptionPane.DEFAULT_OPTION, null,
                                                       null, null);

        pane.setInitialValue(null);
        pane.setComponentOrientation(parent.getComponentOrientation());



        return pane;
    }

}
